<?php
require'../include/init.php';
require'./admin_init.php';
$sql = "SELECT * from tk_sysconfig ";
$rs = mysql_query($sql);
$config=[];
while($list = mysql_fetch_assoc($rs)){
	$config[]=$list;
}
?>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>主体部分</title>
	<base target="_self">
	<link rel="stylesheet" type="text/css" href="skin/css/base.css" />
	<link rel="stylesheet" type="text/css" href="skin/css/main.css" />
</head>
<body leftmargin="8" topmargin='8'>
	<table width="98%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom:8px;margin-top:8px;">
	  <tr>
	    <td background="./skin/images/frame/wbg.gif" bgcolor="#EEF4EA" class='title' border="0px"><span><img src='./skin/images/frame/arr3.gif' style='margin-right:10px;'>配置管理</span></td>
		<td align="right" background="./skin/images/frame/wbg.gif" bgcolor="#EEF4EA" class='title' border="0px"></td>
	  </tr>
	  <form action="sys_conf.php" method="post">
	  <tr bgcolor="#FFFFFF">
	    <td colspan="2">
			<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CFCFCF" align="center" style="margin-top:8px">
	  <!-- data start-->
	 <?php foreach($config as $value):?>

				<tr align='center' bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
					<td align="left" width="10%">
						&nbsp;&nbsp;<?php echo $value['info'];?>:
					</td>
					<td align="left" width="80%">
						<input type="text" name="<?php echo $value['varname'];?>" value="<?php echo $value['value'];?>" class="input-text" style="width:80%" />
					</td>							
					</tr>
					<?php endforeach;?>
					<tr style="background: #FBFCE2;">
						<td colspan="3" align="center" height="48px">
						<input type="hidden" name="act"  value="edit"/>
						<input calss="btn btn-primary" type="submit" value="确认"> 
						</td>
					</tr>
					</table>
				</td>
			  </tr>
			</form>
	  <!-- data end-->
	  <!-- select start-->
		  
	  <!-- select end-->
	  <!-- page start-->
		  
	  <!-- page end-->
	  
	</table>
	</body>
</html>